package org.example.pms.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
public class Patient  extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 关联用户表的外键
     */
    private Integer userId;

    /**
     * 患者姓名
     */
    private String name;

    /**
     * 性别
     */
    private Integer gender;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 所在医院
     */
    private String hospital;

    /**
     * 癌症类型
     */
    private String cancerType;

    /**
     * 患者使用的免疫治疗药物情况
     */
    private String immunotherapyMedication;

    /**
     * 第一次采样时间
     */
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date firstSamplingDate;

}
